Implemented to write test result summary to a txt file.

You actually don't need to import the `fs` module here because we've already imported `fs-extra`, which is a wrapper around Node's `fs` module that includes everything from `fs` plus some extra functionality, like recursive directory copying. So wherever you're using `fs` now you can just use `fse` instead.