简体   繁体   中英

Is Javascript Testing Framework about testing javascript code or using javascript to test any application written in some other programming language?

Is Javascript Testing Framework about testing javascript code or using javascript to test any application written in some other programming language?

Cucumber is an example of javascript Testing Framework but we can use Java to test any non-javascript functionality of an application. So in this case Javascript is not involved anywhere but still Cucumber is called Javascript Testing Framework, why?

If you use a Javascript testing framework to verify Javascript, then it is about testing javascript.

If you use a Javascript testing framework to test an application from the outside, then it is about testing an application without consideration of the programming language the application is implemented in.

It all depends on your perspective.

You can't use a Javascript testing framework to test Java or c# code. It isn't possible to instantiate a native object and work with it using Javascript.

You are interested in reading the blog post Aslak Hellesøy, the creator of Cucumber, wrote a couple of years ago about Cucumber as a testing tool. Short spoiler, Cucumber isn't about testing.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM