Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement importable runtime API #46

Merged
merged 1 commit into from
Aug 27, 2019
Merged

Conversation

just-boris
Copy link
Contributor

@just-boris just-boris commented Aug 26, 2019

closes #37

Summary

  1. Added a new top level file allure-mocha/runtime that customers should import to access allure object.
  2. Created a separate typescript project for test files, this was needed to make local imports import { allure } from "../../../runtime"; working correctly.
  3. Disabled ignoreLeaks option in Mocha. This confirms that the fix is working

@@ -67,7 +67,7 @@ export class AllureReporter {
}

this.currentTest = this.currentSuite.startTest(test.title);
this.currentTest.fullName = test.name;
this.currentTest.fullName = test.title;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typescript compilation updates revealed the issue here. test.name does not exist in Mocha and it was undefined.

@baev baev merged commit 4ccba1d into allure-framework:master Aug 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allure-mocha is not compatible with --check-leaks option
2 participants