Releases: gemini-testing/testplane
v8.11.0
v8.10.0
Rename to Testplane without breaking backward compatibility
Migration guide Hermione -> Testplane: https://github.com/gemini-testing/testplane/blob/master/docs/migration-from-hermione.md
v0.1.3
🚀 Improvements
- add ability to specify dev server in config file (#911)
Usage example
// .testplane.conf.ts
const SERVER_PORT = 3000;
...
export default {
...
devServer: {
command: "npm run server:dev",
env: {PORT: SERVER_PORT},
readinessProbe: {
url: `http://localhost:${SERVER_PORT}/health`
}
}
}
Creates dev server with command "npm run server:dev", pass PORT
env variable and wait until its ready to receive network requests
Command could also be "node some/file.js
" or something else.
hermione/8.9.0
🚀 Improvements
- add ability to specify dev server in config file (#909)
Usage example
// .hermione.conf.ts
const SERVER_PORT = 3000;
...
module.exports = {
...
devServer: {
command: "npm run server:dev",
env: {PORT: SERVER_PORT},
readinessProbe: {
url: `http://localhost:${SERVER_PORT}/health`
}
}
}
Creates dev server with command "npm run server:dev", pass PORT
env variable and wait until its ready to receive network requests
Command could also be "node some/file.js
" or something else.
v0.1.2
🚀 Improvements
- ability to read tests in ".jsx" and ".tsx" files (#906)
- implement experimental feature to run component/unit tests in browser (#906)
How to try it:
// testplane.conf.ts
export default {
// ...
system: {
testRunEnv: "browser"
}
}
// tests/example.testplane.tsx
it("test", async ({browser}) => {
render(<h1>Hello</h1>);
await expect(browser.$('h1')).toHaveTitle('Hello');
});
v0.1.0
💣 Breaking changes
- rename Hermione to Testplane
hermione/v8.8.1
🐛 Bug fixes
- fix: do not remove spaces in runnable title (#897)
We have to account for user spaces in test titles.
For example:
describe(' foo ', () => {
it('bar ', () => {});
});
In hermione@6 fullTitle
for this test was foo bar
(with two spaces between foo
, bar
and one space at the beginning and end). Starting from the version hermione@7 behaviour was changed and fullTitle
looks like foo bar
(with only one space between foo
, bar
and without spaces at the beginning and end). So we return the previous behavior.
hermione/v7.5.6
hermione/v8.8.0
🚀 Improvements
- add ability to extend "hermione" global variable (#896)
Usage example
- Extend interface
GlobalHelper
from module "hermione":
// global.d.ts
import type { GlobalHelper } from "hermione";
declare module "hermione" {
interface GlobalHelper {
also: {
in: (args: string | string[]) => void;
};
}
}
- Use
hermione.also.in
with extended typings:
hermione.also.in('foo');
hermione/v7.5.5
🐛 Bug fixes
- fix: do not ignore assertView errors in broken session rejection (#891)