1

I have some *.js which is suppose to be the unit tests. I am not sure how to invoke them.

describe('test123', function() {
        blah blah blah;
});
4
  • Which Unit Testing framework are you using? Commented May 26, 2012 at 23:33
  • I am not sure. This is a legacy code, so ask here. Commented May 26, 2012 at 23:36
  • 1
    Various Unit Testing frameworks are used in various different ways. Some run in the browser, others require a Node server, and yet others have other dependencies. Without knowing more, we cannot tell you how to invoke yours. Commented May 26, 2012 at 23:37
  • For us to identify the framework, you'll need to show some of the test cases within the describe() block. Commented May 26, 2012 at 23:54

1 Answer 1

2

This appears to be Jasmine. If that is the case, you can learn more about it at http://pivotal.github.com/jasmine/, and you can invoke them with the SpecRunner. You can see a simple project example online here: https://github.com/pivotal/jasmine/wiki/A-simple-project.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.