In general, there are two things women (and men) find attractive. And that's what you do and how you do it. Those are two separate things - 1) what you do, and 2) how you do it.
Now, what you do is attractive to some people and unattractive to others. If you're a math professor, that will be attractive to some women and unattractive to others. Some will think its nerdy and some think nerdy is hot.
On the same note, just because a woman is not into what you do, she might be into the fact that you just plain do something, that you have a passion, and that you're unashamed of it. You own it, whatever it is. That's confidence.
Of course, some women despise both. That you're into something "weird" and that you're confident about it, that you don't give two shits about what they think about it. They want someone who is submissive and that they can control. If you're into being controlled and told what to do and like to serve others, great, you've found your niche, own it. Be confident about your need to serve and you'll be much better off. But if you have your own opinions, if you have a life you enjoy and are content with, if you enjoy your freedom and self-determination, you're better off without those women.
And the way you test for them is by doing exactly what you want and owning it.