Some of the implementation may be simpler to save gas, e.g., some amount calculation done off-chain. But the implementation is there for better code readibility.
npm install
npx hardhat test
REPORT_GAS=true npx hardhat test
npx hardhat test <path_to_the_test_file>
Add .only
after the it
of your specific choice in the test file
For example:
it.only("Should open a long position correctly", async function () {
// the test code
});