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

Only passed test cases get posted on slack #20

Open
neerajkumarlad opened this issue Jun 3, 2022 · 0 comments
Open

Only passed test cases get posted on slack #20

neerajkumarlad opened this issue Jun 3, 2022 · 0 comments

Comments

@neerajkumarlad
Copy link

neerajkumarlad commented Jun 3, 2022

Script:

describe("Main Test 1", async () => {
	it("Test 1", async () => {
	 	expect(true).toBe(true);
	 });
	it("Test 2", async () => {
		expect(true).toBe(false);
	});
});

describe("Main Test 2", async () => {
	it("Test 3r", async () => {
		expect(true).toBe(true);
	});
});

wdio.conf.js

services: [
		["chromedriver"],
		[
			slack,
			{
				webHookUrl:
					"https://hooks.slack.com/XXX", // Used to post notification to a particular channel
				messageTitle: "WebDriverIO Automation Status", // Name of the notification
			},
		],
	],

Output

image

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

No branches or pull requests

1 participant