Skip to content

Conversation

@Hermione2408
Copy link
Member

@Hermione2408 Hermione2408 commented Feb 25, 2023

Adding Keploy mode in logs to notify user in which mode keploy is running whether it is record, test, off

feat keploy/keploy#390
Closes: keploy/keploy#390

@re-Tick
Copy link
Contributor

re-Tick commented Mar 1, 2023

Hi @Hermione2408, we just need to log mode only once which could be from src/keploy.go and mock/mock.go

This console statements can be in the constructor of Keploy class.

mock/mock.ts Outdated
Mode: string;
}
export function NewContext(conf: Config) {
console.log("Keploy running in: ",process.env.KEPLOY_MODE," mode");
Copy link
Contributor

Choose a reason for hiding this comment

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

Please place this log statement after this because here we are considering mode either from env variable or conf.mode parameter. Also log value of "mode" in log statement instead of process.env

…tify user

Adding Keploy mode in logs to notify user in which mode keploy is running whether it is record,
test, off

feat #45

Signed-off-by: Hermione Dadheech <hermionedadheech@gmail.com>
feat #45

Signed-off-by: Hermione Dadheech <hermionedadheech@gmail.com>
feat #45

Signed-off-by: Hermione Dadheech <hermionedadheech@gmail.com>
@re-Tick
Copy link
Contributor

re-Tick commented Mar 3, 2023

LGTM. Hey @Hermione2408 , Please add link to this PR in GSOC/2023 Task List .

@Hermione2408
Copy link
Member Author

Done.

@re-Tick re-Tick added good first issue Good for newcomers Accepted PR is reviewed and Accepted labels Mar 6, 2023
@Sonichigo Sonichigo added the Don't Merge Not to be merged until gsoc results label Mar 6, 2023
@re-Tick re-Tick added Accepted PR is reviewed and Accepted and removed Accepted PR is reviewed and Accepted labels Mar 7, 2023
@keploy
Copy link

keploy bot commented Apr 15, 2025

Nice Pr 😄. We currently support Unit Test Generation only for Go projects.
Stay tuned – support for more languages is coming soon! 🚀

1 similar comment
@keploy-staging
Copy link

Nice Pr 😄. We currently support Unit Test Generation only for Go projects.
Stay tuned – support for more languages is coming soon! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Accepted PR is reviewed and Accepted Don't Merge Not to be merged until gsoc results good first issue Good for newcomers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feature]: need to log the keploy mode

3 participants