Test classes and methods marked as "unused"

Why does R# consider classes decorated with TestFixtureAttribute as well as methods decorated with TestAttribute and the like as "unused"?

0
6 comments
Avatar
Permanently deleted user

Let's put it in this way, R# should NOT mark classes decorated with TFA and methods decorated with TestAttribute (at least, since those are the once usually supported by common testing frameworks), as unused.

0
Avatar
Permanently deleted user

Hello Simone,

Which test framework do you use? Thank you!

Andrey Serebryansky
Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Let's put it in this way, R# should NOT mark classes decorated with
TFA and methods decorated with TestAttribute (at least, since those
are the once usually supported by common testing frameworks), as
unused.

---
Original message URL:
http://devnet.jetbrains.net/message/5266520#5266520



0
Avatar
Permanently deleted user

MbUnit 2.x

0
Avatar
Permanently deleted user

Hello Simone,

ReSharper doesn't support MbUnit out of the box, so it doesn't known that
MbUnit's TestFixture and Test attributes designate tests. In order to tell
ReSharper that methods and classes marked with those attributes are actually
used you should add a MbUnit.xml file to

Add other attributes as well if needed. Thank you!

Andrey Serebryansky
Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

MbUnit 2.x

---
Original message URL:
http://devnet.jetbrains.net/message/5266574#5266574



0
Avatar
Permanently deleted user

Do you mean using the annotations feature?

0
Avatar
Permanently deleted user

Hello Simone,

Yes. This way you add an external annotation that tells ReSharper that TestFixture
and Test attributes are marked with MeansImplicitUse attribute from JetBrains.Annotations.
Thanky you!

Andrey Serebryansky
Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Do you mean using the annotations feature?

---
Original message URL:
http://devnet.jetbrains.net/message/5266676#5266676



0

Please sign in to leave a comment.