Quantcast
Channel: Chutzpah - A JavaScript Test Runner
Viewing all articles
Browse latest Browse all 1864

Edited Issue: Support Test Explorer Traits [101]

$
0
0
Add the ability to consume traits for use in VS2012.
http://blogs.msdn.com/b/visualstudioalm/archive/2012/11/20/part-2-using-traits-with-different-test-frameworks-in-the-unit-test-explorer.aspx

I'm still trying to work out how feasible this is. It may be possible to add trait information at the module and suite levels in QUnit and jasmine respectively:

```
module('Something', {
setup: function () {
},
traits: {
category: 'Category'
}
});
```
```
describe('Something', function () {
this.traits = {
category: 'Category'
}

beforeEach(function () {
});
});
```

Or maybe some custom JSON comment format?

```
/*{
"category": "Category"
}*/
```

I'm guessing the chutzpahRunner would need consume that information somehow during discovery.

Viewing all articles
Browse latest Browse all 1864

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>